using UnityEngine;

[CreateAssetMenu]
public class Loot : ScriptableObject
{
    [Header("战利品图像")]
    public Sprite lootSprite;
    [Header("战利品的名称")]
    public string lootName;
    [Range(0, 100), Header("此战利品掉落的概率（0-100）")]
    public int dropChance;

    public Loot(string lootName, int dropChance)
    {
        this.lootName = lootName;
        this.dropChance = dropChance;
    }
}